package com.story.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import com.story.domain.Page;
import com.story.domain.User;

/*
 * @IUserDao 用户数据库访问接口
 * */
public interface IUserDao {
	public void addUser(User user) throws DataAccessException;
	public void deleteUserByUserId(String id) throws DataAccessException;
	public User updateUser(User user) throws DataAccessException;
	public User findOneByUserId(String id) throws DataAccessException;
	public User findoneByUserName(String username) throws DataAccessException;
	public User findoneByUsernamePassowrd(@Param("username")String username,@Param("password")String password) throws DataAccessException;
	List<User> findAll();
	Integer selectCount();
	List<User> selectUsersByLimit(Page page);
}
